DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Assets/drawable-hdpi-icon.png" "236ecc949d66a95002ef3b7c4899b908c33beac2")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Assets/drawable-ldpi-icon.png" "a65bd6deb93a106528a93811c8bb225e363e9ad1")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Assets/drawable-mdpi-icon.png" "5ac0889ea659863109466b7c30d290803e339290")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Assets/drawable-xhdpi-icon.png" "eea1ce5b5766c40e7744f018a4199db47abf196a")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Assets/Logo.png" "456cf38b04afcbc7510a23f3e4a4bce9bdb88d37")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Assets/SmallLogo.png" "e2539cfcdde8423bd2f3db5e32f0840115b1d1a4")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Assets/SmallLogo44.png" "37618221906cae2e592abe69ed8581525c2e5ead")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Assets/SplashScreen.png" "a6aaabf642afb84cc3deeb7d0a9e873ea7270a03")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Assets/StoreLogo.png" "7aea004dd6483199fc1a1117b8e0513e33a50bef")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Assets/Wide310x150Logo.png" "0d06da9035bca58dab783b05499222225155da5f")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/ScifiRoom/SCI1.JPG" "C38CAE060BE31B85C06DF27C3B243FDCF09F32EE")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/ScifiRoom/SCI2.JPG" "8F332AB9334B16F7CBAEFDEBB3897ACE9F5E7769")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/ScifiRoom/SCI3.JPG" "462BF54BC9CE2E1DB928644BAC8323EDF6F3E914")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/ScifiRoom/SCI4.JPG" "CEBCC5EC43FD7A104431C251B432C9C6EDFEB505")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/ScifiRoom/SCI5.JPG" "1B8F13E721D7F5A636F02D59E5454F6A05AECC3A")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/ScifiRoom/SCI6.JPG" "0401B853E3A8E1AE40118863A768E21B88D4DDAB")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/ScifiRoom/SCI8.JPG" "E923F882E036A264AB3C165B62E6A369FF48A3BD")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/ScifiRoom/SCI9.JPG" "C03629E213B5A54AB93E280D779C25A06B339BD3")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/ScifiRoom/Scifi.3DS" "848F8D3FF6A07B47E49F63EF84D3E06E2FC169B5")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/background.jpg" "3745C0F53B26EA2E6228376FC0166297C18702D7")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/background_ddn.jpg" "FFDB7F85A3435FB4DC908D97A88C77CF5128B3C3")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/chain_texture.png" "E987E170625596B69015A471F021C0639F3D5BCC")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/chain_texture_ddn.jpg" "F008C66437156FD5261A1BD1C829331542336ECE")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/lion.jpg" "4F469541FE7E378A103A67678DC0D532062320E2")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/lion_ddn.jpg" "8AFE81F6C25FD58C53CF2A230EA070B1E8199607")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/spnza_bricks_a_ddn.jpg" "D64E80F868C3B6DB24A999D88813092612EC2DBA")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/spnza_bricks_a_diff.jpg" "1B0D117B62E1E11A49BB74F28092ABCEAE617D3D")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/spnza_bricks_a_spec.jpg" "68EF207DC96FD1FBBD213939B3C5B6C9CA718F8E")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza.glb" "5AAED6A0C78BCD9AA795F585647A3E59BE9C3C1B")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_arch_ddn.jpg" "09027F6344157CBCF5B5F3F92913E109933B7983")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_arch_diff.jpg" "AA90B17EC03F884215CDEFAE2D08E0EA0728D440")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_arch_spec.jpg" "46D5D8A11A672F08517D52DCD4294B6F8A756D63")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_ceiling_a_diff.jpg" "14481D8AAFC36885FCA1636D03EA37C281EBC817")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_ceiling_a_spec.jpg" "9B78F5E875805BC71111FC86A45382BB1A4F84EA")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_column_a_ddn.jpg" "0FE5927DEE5849F51DD657BFE5D4EB88666FD228")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_column_a_diff.jpg" "D8A4F512BE6537D0BC4BD062F2354B43B3E8075D")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_column_a_spec.jpg" "2F4BF323DD3BA7CA089B1CD3A1393FF728D647C2")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_column_b_ddn.jpg" "D5D2383AC99147BBBD870E77D1B6985D5F3FC8A2")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_column_b_diff.jpg" "DBF3A049861C8552806E4E9C7B28DC689744E255")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_column_b_spec.jpg" "509B8D42D29BE934984360C32CB27498C75C169F")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_column_c_ddn.jpg" "D7B574F0EBC7579750E2A967B86D3083AEA44F52")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_column_c_diff.jpg" "CF4991EB203757541C1E336733BFBCCE87234611")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_column_c_spec.jpg" "0BA420600D69FDB994ADADB40DC6984EDB7954EA")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_curtain_blue_diff.jpg" "2ED3D4D2699EA59F8429E1B375DDAA502BA65968")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_curtain_diff.jpg" "6B7BB4CADA577405E8CF3D99D249022A72815F82")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_curtain_green_diff.jpg" "E041F687E6EA1180F8C776D921E2F1CFD47D00A1")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_details_diff.jpg" "C50E1596C5459631CCB9A93A8C24F875C4A736EA")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_details_spec.jpg" "E47DA0969E378FA6EB0139A8BBBC419AF8C91CE0")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_fabric_blue_diff.jpg" "D6831A8DAF14A6ADCAD0302F7CBA8D19C5898E31")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_fabric_diff.jpg" "21B3C9165B9393A2D597514FB9336BF8EEA01DD4")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_fabric_green_diff.jpg" "44A7F21135EE21F0D60CE0305844F8624F002D1A")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_fabric_spec.jpg" "126A2C1CA3F989458808D34A0EA2BBDBDD042292")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_flagpole_diff.jpg" "C4D92BC19A3CDE13326041BBEF0E0827AC8349E7")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_flagpole_spec.jpg" "77C9ECCD06FBD5F14BDF0B148824676C60370642")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_floor_a_diff.jpg" "FE056E13E9AAA8C961C6012089BC65E78A24D563")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_floor_a_spec.jpg" "9E91BDC7D66C84034F8F656D720283C4113CBAFE")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_roof_diff.jpg" "DF5F2167D7DA7AA00FCC18950C304013E7DBFADF")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_thorn_ddn.jpg" "8496494241DD3A8771CDEC1793B9999203DEC088")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_thorn_diff.png" "84ABFBE84DC87EFEABCE7EDC4794CF987A6C8D88")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/sponza_thorn_spec.jpg" "FD8BF18D70B160B06BE9F6C126634284CA0155F7")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/vase_ddn.jpg" "8E526A4F4C3142DB18EADD15709AC98CF6296E06")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/vase_dif.jpg" "92B8C57E3ED4399B91DDE288B88BDE051A02C110")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/vase_hanging.jpg" "2889583DB3E8DDB350BD6BD36B8E8CF499E2C563")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/vase_plant.png" "EA9015311ABA97995FBDFB109C3FCF478A9766B3")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/vase_plant_spec.jpg" "0147332660EEFCFAE81342883B442B20F4930834")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/vase_round.jpg" "22AA42BEB0C4D123B80DF5D7CB9E18E14FD3C26F")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/vase_round_ddn.jpg" "8FAFE7A38ADBACEFBBC011486306DE7BFCA6C67A")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/Sponza/vase_round_spec.jpg" "C71C8E91C7CA31013ECA64AD974C39A2AACD927B")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/dino50.glb" "B6B3EBDF224EF57F58BA405A8748602AC4B2294A")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/KlayGE_TemporaryKey.pfx" "362BF362C8696AE2A6262BC12B88853ABF1658BF")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/sphere_high.glb" "D4760D3994C8364754EA7F6FB7189C0E45D3E863")
DOWNLOAD_DEPENDENCY("KlayGE/Samples/media/Common/teapot.glb" "F5D752D7C3B9B0ED2AA44B921304B3B1438C293F")

SET(SAMPLE_COMMON_LIB_OUTPUT_DIR ${KLAYGE_PROJECT_DIR}/Samples/lib/${KLAYGE_PLATFORM_NAME})

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${SAMPLE_COMMON_LIB_OUTPUT_DIR})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${SAMPLE_COMMON_LIB_OUTPUT_DIR})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${SAMPLE_COMMON_LIB_OUTPUT_DIR})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELWITHDEBINFO ${SAMPLE_COMMON_LIB_OUTPUT_DIR})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_MINSIZEREL ${SAMPLE_COMMON_LIB_OUTPUT_DIR})

IF(KLAYGE_PLATFORM_IOS)
	SET(SOURCE_FILES
		${KLAYGE_PROJECT_DIR}/Samples/src/Common/SampleCommon.mm
	)
ELSE()
	SET(SOURCE_FILES
		${KLAYGE_PROJECT_DIR}/Samples/src/Common/SampleCommon.cpp
	)
ENDIF()

SET(HEADER_FILES
	${KLAYGE_PROJECT_DIR}/Samples/src/Common/SampleCommon.hpp
)

SOURCE_GROUP("Source Files" FILES ${SOURCE_FILES})
SOURCE_GROUP("Header Files" FILES ${HEADER_FILES})

ADD_LIBRARY(SampleCommon STATIC
	${SOURCE_FILES} ${HEADER_FILES})

target_include_directories(SampleCommon
	PUBLIC
		${KLAYGE_PROJECT_DIR}/Samples/src/Common
)

SET_TARGET_PROPERTIES(SampleCommon PROPERTIES
	OUTPUT_NAME SampleCommon${KLAYGE_OUTPUT_SUFFIX}
	FOLDER "KlayGE/Samples"
)

target_link_libraries(SampleCommon
	PUBLIC
		KlayGE_Core
)

add_dependencies(SampleCommon AllInEngine)
